package com.flyco.modules.sms.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.flyco.common.aspect.annotation.Dict;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import com.flyco.poi.excel.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Description: 问卷调查属性表
 * @Author: flyco
 * @Date:   2021-05-25
 * @Version: V1.0
 */
@Data
@TableName("sms_questionnaire_attribute")
@ApiModel(value="sms_questionnaire_info对象", description="问卷调查表")
public class SmsQuestionnaireAttribute implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
	private Long id;
	/**调查表id*/
    @ApiModelProperty(value = "调查表id")
	private Long infoId;
	/**名称*/
    @Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
	private String name;
	/**属性录入方式：input->手工录入; select->从列表中选取; date->日期选择*/
    @Excel(name = "属性录入方式：input->手工录入; select->从列表中选取; date->日期选择", width = 15)
    @ApiModelProperty(value = "属性录入方式：input->手工录入; select->从列表中选取; date->日期选择")
	@Dict(dicCode = "invitation_attribute_input_type")
	private String inputType;
	/**可选值列表，以逗号隔开*/
    @Excel(name = "可选值列表，以逗号隔开", width = 15)
    @ApiModelProperty(value = "可选值列表，以逗号隔开")
	private String inputList;
	/**排序*/
    @Excel(name = "排序", width = 15)
    @ApiModelProperty(value = "排序")
	private Integer sort;
	/**是否必填项，0：非必填，1：必填*/
    @Excel(name = "是否必填项，0：非必填，1：必填", width = 15)
    @ApiModelProperty(value = "是否必填项，0：非必填，1：必填")
	@Dict(dicCode = "yn")
	private Integer required;
	/**创建人*/
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	/**更新人*/
    @Excel(name = "更新人", width = 15)
    @ApiModelProperty(value = "更新人")
	private String updateBy;
	/**更新时间*/
	@Excel(name = "更新时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
	private java.util.Date updateTime;
}
